package czopyk.model.analysis;

public class LoadReportEvent extends Event {

	public final double load;
	
	public final String centerName;

	public LoadReportEvent(double load, String name, double timestamp) {
		super(timestamp);
		if (load < 0.0) {
			throw new IllegalArgumentException("Load = " + load + ". Load must be positive.");
		}
		this.load = load;
		centerName = name;
	}

	public double getLoad() {
		return load;
	}

	public String getCenterName() {
		return centerName;
	}

	@Override
	public String toString() {
		return "LoadReportEvent [load=" + load + ", centerName=" + centerName + "]";
	} 
	
}
